home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / recode.lha / recode-3.2.4 / version.c < prev   
C/C++ Source or Header  |  1992-10-07  |  2KB  |  55 lines

  1. /* Conversion of files between different charsets and usages.
  2.    Copyright (C) 1990 Free Software Foundation, Inc.
  3.    Francois Pinard <pinard@iro.umontreal.ca>, 1989.
  4. */
  5.  
  6. #ifndef __STDC__
  7. #define const
  8. #define volatile
  9. #endif
  10.  
  11. #include <stdio.h>
  12.  
  13. /* Should stay one a single line, for `make dist' to work.  */
  14. const char *version_string = "\nrecode version 3.2.4\n";
  15.  
  16. const char *copyright_line
  17.   = "Copyright (C) 1991, 1992 Free Software Foundation, Inc.\n";
  18.  
  19. /*-----------------------------------------------------------.
  20. | Prints package name and version, and the short Copyright.  |
  21. `-----------------------------------------------------------*/
  22.  
  23. void
  24. print_version (void)
  25. {
  26.   fprintf (stderr, "%s%s", version_string, copyright_line);
  27. }
  28.  
  29. /*-----------------------------------.
  30. | Prints a more detailed Copyright.  |
  31. `-----------------------------------*/
  32.  
  33. void
  34. print_copyright (void)
  35. {
  36.   fprintf (stderr, "\n\
  37. This program is free software; you can redistribute it and/or modify\n\
  38. it under the terms of the GNU General Public License as published by\n\
  39. the Free Software Foundation; either version 2, or (at your option)\n\
  40. any later version.\n\
  41. \n\
  42. This program is distributed in the hope that it will be useful,\n\
  43. but WITHOUT ANY WARRANTY; without even the implied warranty of\n\
  44. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n\
  45. GNU General Public License for more details.\n\
  46. \n\
  47. You should have received a copy of the GNU General Public License\n\
  48. along with this program; if not, write to the Free Software\n\
  49. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.\n\
  50. \n\
  51. Mail all suggestions and bug reports for this program to its author,\n\
  52. Francois Pinard <pinard@iro.umontreal.ca>.\n\
  53. \n");
  54. }
  55.